/*
 ============================================================================
 Name        : Standard Deviation.c
 Author      : Alfonso Jimenez and Santiago Gallo
 Version     :
 Copyright   : Your copyright notice
 Description : Std deviation project
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "StatFunctions.h"

int arrSsize;
int dataArray1[]= {160, 591, 114, 229, 230, 270, 128, 1675, 624, 1503};
int dataArray2[]= {15, 69, 6, 22, 28, 65, 19, 198, 38, 138};
int arrSize1 = sizeof(dataArray1)/sizeof(dataArray1[0]);
int arrSize2 = sizeof(dataArray2)/sizeof(dataArray2[0]);

int main(void)
{
	float mean1;
	float mean2;
	float stdDev1;
	float stdDev2;

	mean1 = StatFunctions_Mean(dataArray1,arrSize1);
	mean2 = StatFunctions_Mean(dataArray2,arrSize2);
	stdDev1 = StatFunctions_StdDev(mean1, dataArray1, arrSize1);
	stdDev2 = StatFunctions_StdDev(mean2, dataArray2, arrSize2);
	printf("The End");
	return EXIT_SUCCESS;
}
